From: LLVM Packaging Team Date: Fri, 13 Oct 2023 16:25:00 +0000 (+0000) Subject: Define the affinity for riscv64 X-Git-Tag: archive/raspbian/1%16.0.6-15_deb11u2+rpi1^2~24 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=87bd684f9930e68881fc2c18a16b123551fde0ed;p=llvm-toolchain-16.git Define the affinity for riscv64 Last-Update: 2021-08-27 Gbp-Pq: Name omp-riscv64.patch --- diff --git a/openmp/runtime/src/kmp_affinity.h b/openmp/runtime/src/kmp_affinity.h index e685e2cee7..0a30748863 100644 --- a/openmp/runtime/src/kmp_affinity.h +++ b/openmp/runtime/src/kmp_affinity.h @@ -212,6 +212,17 @@ public: #elif __NR_sched_getaffinity != 123 #error Wrong code for getaffinity system call. #endif /* __NR_sched_getaffinity */ +#elif KMP_ARCH_RISCV64 +#ifndef __NR_sched_setaffinity +#define __NR_sched_setaffinity 122 +#elif __NR_sched_setaffinity != 122 +#error Wrong code for setaffinity system call. +#endif /* __NR_sched_setaffinity */ +#ifndef __NR_sched_getaffinity +#define __NR_sched_getaffinity 123 +#elif __NR_sched_getaffinity != 123 +#error Wrong code for getaffinity system call. +#endif /* __NR_sched_getaffinity */ #elif KMP_ARCH_X86_64 #ifndef __NR_sched_setaffinity #define __NR_sched_setaffinity 203